#pragma once

#include "IMEBaseStructure.h"
#include <vector>
#include <string>
#include <list>

class CTableDictionaryEngine{
public:
    CTableDictionaryEngine();
    ~CTableDictionaryEngine();


    void CollectWord(const wchar_t *input,DWORD_PTR input_size, CImeArray<CCandidateListItem> *pCandidateList);

    void AddHistory(const WCHAR *word, DWORD_PTR dwLength);
private:
    std::vector<std::wstring> _candidates;
    std::list<std::wstring> _history;
    unsigned short _history_size;
};